* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: #333;
}
html,
body,
main {
  height: 100%;
  position: relative;
}
body {
}
main > section {
  height: calc(100% - 50px);
  padding: 10px;
  background: #fff;
  overflow: scroll;
  -webkit-overflow-scrolling: touch; /*ios 上增加弹性*/
}
main > section {
  display: none;
}
main section:first-child {
  display: block;
}
.item {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  padding-top: 10px;
}
.item > a {
  display: block;
  display: flex;
}
.item .cover,
.item .cover img {
  width: 70px;
}
.item .detail {
  flex: 1;
  padding-left: 10px;
}
.item .detail h2 {
  font-size: 16px;
}
.item .detail .extra {
  color: #999;
  margin-top: 4px;
}
.item .detail .score {
  color: #ff5722;
}
#search {
  height: calc(100% - 45px);
}
section .search-area {
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
  position: relative;
}
section .search-area input {
  width: calc(100% - 50px);
  padding: 8px;
  background-color: #eee;
  border: none;
  border-radius: 2px;
  box-shadow: none;
  outline: none;
}
section .search-area .button {
  position: absolute;
  right: 0;
  padding: 8px 10px;
  background: #ff5722;
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}

.icon {
  width: 2em;
  height: 2em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

footer {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  text-align: center;
  border-top: 1px solid #ccc;
  height: 50px;
  font-size: 12px;
  line-height: 15px;
}

footer div {
  flex: 1;
  padding-top: 3px;
}

footer div p {
  font-size: 14px;
  margin-top: 3px;
}

footer .active {
  color: #ff5722;
}
.loading {
  text-align: center;
  padding: 5px;
  display: none;
}
.iconloading {
  display: inline-block;
  animation: rotate 1s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
